define(()=>{
    return function(goods, res, tbody){
        let str = "";
        res.forEach(val1=>{
            goods.forEach(val2=>{
                if(val1.proId === val2.id){
                    str += `                
                    <ul class="cart-head list-item selected ns-border-color-gray" index="${val2.id}">
                        <li>
                            <input type="checkbox" class="check"  ${val2.flag ? "checked" : ""}>
                            <a class="item-pic ns-border-color-gray" target="_blank" href="">
                                <img class="lazy" src="${val1.img}" style="display: block;">	
                            </a>
                            <a class="item-text" href="" target="_blank">
                                <span>${val1.proName}</span>
                            </a>
                        </li>
                        <li style="text-align:left;">
                        </li>
                        <li class="price" data-pack-total-price="" data-promotion-price="219">
                            <span data-value="219" class="js_price_12484">￥${val1.price}</span>
                        </li>
                        <li>
                            <div class="item-counter">
                                <input type="number" min="1" value="${val2.num}" class="num ns-border-color-gray">
                            </div>
                        </li>
                        <li>
                            <span id="subtotal_12484" class="sum">￥${val2.num * val1.price}</span>
                        </li>
                        <li>
                            <span class="del">删除</span>
                        </li>
                    </ul>`
                }
            })
        })
        tbody.html(str);
    }
})